\section{TiXmlAttribute Class Reference}
\label{classTiXmlAttribute}\index{TiXmlAttribute@{TiXmlAttribute}}
{\tt \#include $<$tinyxml.h$>$}

Inheritance diagram for TiXmlAttribute::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classTiXmlAttribute}
\end{center}
\end{figure}


\subsection{Detailed Description}
An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.

\begin{Desc}
\item[Note:]The attributes are not TiXmlNodes, since they are not part of the tinyXML document object model. There are other suggested ways to look at this problem. \end{Desc}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf TiXmlAttribute} ()
\begin{CompactList}\small\item\em Construct an empty attribute. \item\end{CompactList}\item 
{\bf TiXmlAttribute} (const char $\ast$\_\-name, const char $\ast$\_\-value)
\begin{CompactList}\small\item\em Construct an attribute with a name and value. \item\end{CompactList}\item 
const char $\ast$ {\bf Name} () const 
\begin{CompactList}\small\item\em Return the name of this attribute. \item\end{CompactList}\item 
const char $\ast$ {\bf Value} () const 
\begin{CompactList}\small\item\em Return the value of this attribute. \item\end{CompactList}\item 
int {\bf IntValue} () const 
\begin{CompactList}\small\item\em Return the value of this attribute, converted to an integer. \item\end{CompactList}\item 
double {\bf DoubleValue} () const 
\begin{CompactList}\small\item\em Return the value of this attribute, converted to a double. \item\end{CompactList}\item 
const TIXML\_\-STRING \& {\bf NameTStr} () const 
\item 
int {\bf QueryIntValue} (int $\ast$\_\-value) const 
\item 
int {\bf QueryDoubleValue} (double $\ast$\_\-value) const 
\begin{CompactList}\small\item\em QueryDoubleValue examines the value string. See \doxyref{QueryIntValue()}{p.}{classTiXmlAttribute_d6c93088ee21af41a107931223339344}. \item\end{CompactList}\item 
void {\bf SetName} (const char $\ast$\_\-name)
\begin{CompactList}\small\item\em Set the name of this attribute. \item\end{CompactList}\item 
void {\bf SetValue} (const char $\ast$\_\-value)
\begin{CompactList}\small\item\em Set the value. \item\end{CompactList}\item 
void {\bf SetIntValue} (int \_\-value)
\begin{CompactList}\small\item\em Set the value from an integer. \item\end{CompactList}\item 
void {\bf SetDoubleValue} (double \_\-value)
\begin{CompactList}\small\item\em Set the value from a double. \item\end{CompactList}\item 
const {\bf TiXmlAttribute} $\ast$ {\bf Next} () const 
\begin{CompactList}\small\item\em Get the next sibling attribute in the DOM. Returns null at end. \item\end{CompactList}\item 
{\bf TiXmlAttribute} $\ast$ {\bf Next} ()
\item 
const {\bf TiXmlAttribute} $\ast$ {\bf Previous} () const 
\begin{CompactList}\small\item\em Get the previous sibling attribute in the DOM. Returns null at beginning. \item\end{CompactList}\item 
{\bf TiXmlAttribute} $\ast$ {\bf Previous} ()
\item 
bool {\bf operator==} (const {\bf TiXmlAttribute} \&rhs) const 
\item 
bool {\bf operator$<$} (const {\bf TiXmlAttribute} \&rhs) const 
\item 
bool {\bf operator$>$} (const {\bf TiXmlAttribute} \&rhs) const 
\item 
virtual const char $\ast$ {\bf Parse} (const char $\ast$p, {\bf TiXmlParsingData} $\ast$data, {\bf TiXmlEncoding} encoding)
\item 
virtual void {\bf Print} (FILE $\ast$cfile, int depth) const 
\item 
void {\bf Print} (FILE $\ast$cfile, int depth, TIXML\_\-STRING $\ast$str) const 
\item 
void {\bf SetDocument} ({\bf TiXmlDocument} $\ast$doc)
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf TiXmlAttributeSet}
\end{CompactItemize}


\subsection{Constructor \& Destructor Documentation}
\index{TiXmlAttribute@{TiXmlAttribute}!TiXmlAttribute@{TiXmlAttribute}}
\index{TiXmlAttribute@{TiXmlAttribute}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}TiXmlAttribute::TiXmlAttribute ()\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_9cfa3c8179873fd485d83003b114f8e1}


Construct an empty attribute. 

\index{TiXmlAttribute@{TiXmlAttribute}!TiXmlAttribute@{TiXmlAttribute}}
\index{TiXmlAttribute@{TiXmlAttribute}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}TiXmlAttribute::TiXmlAttribute (const char $\ast$ {\em \_\-name}, const char $\ast$ {\em \_\-value})\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_759d0b76fb8fcf765ecab243bc14f05e}


Construct an attribute with a name and value. 



\subsection{Member Function Documentation}
\index{TiXmlAttribute@{TiXmlAttribute}!Name@{Name}}
\index{Name@{Name}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ TiXmlAttribute::Name () const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_298a57287d305904ba6bd96ae6f78d3d}


Return the name of this attribute. 

\index{TiXmlAttribute@{TiXmlAttribute}!Value@{Value}}
\index{Value@{Value}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ TiXmlAttribute::Value () const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_0f874490eac8ca00ee0070765d0e97e3}


Return the value of this attribute. 

\index{TiXmlAttribute@{TiXmlAttribute}!IntValue@{IntValue}}
\index{IntValue@{IntValue}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int TiXmlAttribute::IntValue () const}\label{classTiXmlAttribute_a1a20ad59dc7e89a0ab265396360d50f}


Return the value of this attribute, converted to an integer. 

\index{TiXmlAttribute@{TiXmlAttribute}!DoubleValue@{DoubleValue}}
\index{DoubleValue@{DoubleValue}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double TiXmlAttribute::DoubleValue () const}\label{classTiXmlAttribute_2880ddef53fc7522c99535273954d230}


Return the value of this attribute, converted to a double. 

\index{TiXmlAttribute@{TiXmlAttribute}!NameTStr@{NameTStr}}
\index{NameTStr@{NameTStr}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const TIXML\_\-STRING\& TiXmlAttribute::NameTStr () const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_64cee17bceb8232eb0736d26dd082d79}


\index{TiXmlAttribute@{TiXmlAttribute}!QueryIntValue@{QueryIntValue}}
\index{QueryIntValue@{QueryIntValue}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int TiXmlAttribute::QueryIntValue (int $\ast$ {\em \_\-value}) const}\label{classTiXmlAttribute_d6c93088ee21af41a107931223339344}


QueryIntValue examines the value string. It is an alternative to the \doxyref{IntValue()}{p.}{classTiXmlAttribute_a1a20ad59dc7e89a0ab265396360d50f} method with richer error checking. If the value is an integer, it is stored in 'value' and the call returns TIXML\_\-SUCCESS. If it is not an integer, it returns TIXML\_\-WRONG\_\-TYPE.

A specialized but useful call. Note that for success it returns 0, which is the opposite of almost all other TinyXml calls. \index{TiXmlAttribute@{TiXmlAttribute}!QueryDoubleValue@{QueryDoubleValue}}
\index{QueryDoubleValue@{QueryDoubleValue}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int TiXmlAttribute::QueryDoubleValue (double $\ast$ {\em \_\-value}) const}\label{classTiXmlAttribute_c87b2a8489906a5d7aa2875f20be3513}


QueryDoubleValue examines the value string. See \doxyref{QueryIntValue()}{p.}{classTiXmlAttribute_d6c93088ee21af41a107931223339344}. 

\index{TiXmlAttribute@{TiXmlAttribute}!SetName@{SetName}}
\index{SetName@{SetName}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlAttribute::SetName (const char $\ast$ {\em \_\-name})\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_b7fa3d21ff8d7c5764cf9af15b667a99}


Set the name of this attribute. 

\index{TiXmlAttribute@{TiXmlAttribute}!SetValue@{SetValue}}
\index{SetValue@{SetValue}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlAttribute::SetValue (const char $\ast$ {\em \_\-value})\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_2dae44178f668b3cb48101be4f2236a0}


Set the value. 

\index{TiXmlAttribute@{TiXmlAttribute}!SetIntValue@{SetIntValue}}
\index{SetIntValue@{SetIntValue}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlAttribute::SetIntValue (int {\em \_\-value})}\label{classTiXmlAttribute_7e065df640116a62ea4f4b7da5449cc8}


Set the value from an integer. 

\index{TiXmlAttribute@{TiXmlAttribute}!SetDoubleValue@{SetDoubleValue}}
\index{SetDoubleValue@{SetDoubleValue}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlAttribute::SetDoubleValue (double {\em \_\-value})}\label{classTiXmlAttribute_0316da31373496c4368ad549bf711394}


Set the value from a double. 

\index{TiXmlAttribute@{TiXmlAttribute}!Next@{Next}}
\index{Next@{Next}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf TiXmlAttribute} $\ast$ TiXmlAttribute::Next () const}\label{classTiXmlAttribute_776478980776a024f7c2846eec640f65}


Get the next sibling attribute in the DOM. Returns null at end. 

\index{TiXmlAttribute@{TiXmlAttribute}!Next@{Next}}
\index{Next@{Next}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf TiXmlAttribute}$\ast$ TiXmlAttribute::Next ()\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_138320aa7793b148ba7e5bd0a0ea4db6}


\index{TiXmlAttribute@{TiXmlAttribute}!Previous@{Previous}}
\index{Previous@{Previous}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf TiXmlAttribute} $\ast$ TiXmlAttribute::Previous () const}\label{classTiXmlAttribute_54a5f8730c7b02b9a41b74e12e27fe86}


Get the previous sibling attribute in the DOM. Returns null at beginning. 

\index{TiXmlAttribute@{TiXmlAttribute}!Previous@{Previous}}
\index{Previous@{Previous}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf TiXmlAttribute}$\ast$ TiXmlAttribute::Previous ()\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_e4dabc932cba945ed1e92fec5f121193}


\index{TiXmlAttribute@{TiXmlAttribute}!operator==@{operator==}}
\index{operator==@{operator==}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool TiXmlAttribute::operator== (const {\bf TiXmlAttribute} \& {\em rhs}) const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_e48c2a65b520d453914ce4e845d607cf}


\index{TiXmlAttribute@{TiXmlAttribute}!operator$<$@{operator$<$}}
\index{operator$<$@{operator$<$}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool TiXmlAttribute::operator$<$ (const {\bf TiXmlAttribute} \& {\em rhs}) const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_db8b6f2cad5948e73e383182e7ce10de}


\index{TiXmlAttribute@{TiXmlAttribute}!operator$>$@{operator$>$}}
\index{operator$>$@{operator$>$}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool TiXmlAttribute::operator$>$ (const {\bf TiXmlAttribute} \& {\em rhs}) const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_867562769ef9778c1690cd373246b05b}


\index{TiXmlAttribute@{TiXmlAttribute}!Parse@{Parse}}
\index{Parse@{Parse}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ TiXmlAttribute::Parse (const char $\ast$ {\em p}, {\bf TiXmlParsingData} $\ast$ {\em data}, {\bf TiXmlEncoding} {\em encoding})\hspace{0.3cm}{\tt  [virtual]}}\label{classTiXmlAttribute_d62774421b814894b995af3b5d231dda}




Implements {\bf TiXmlBase} \doxyref{}{p.}{classTiXmlBase_00e4edb0219d00a1379c856e5a1d2025}.\index{TiXmlAttribute@{TiXmlAttribute}!Print@{Print}}
\index{Print@{Print}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void TiXmlAttribute::Print (FILE $\ast$ {\em cfile}, int {\em depth}) const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlAttribute_cc04956c1d5c4c31fe74f7a7528d109a}


All TinyXml classes can print themselves to a filestream or the string class (\doxyref{TiXmlString}{p.}{classTiXmlString} in non-STL mode, std::string in STL mode.) Either or both cfile and str can be null.

This is a formatted print, and will insert tabs and newlines.

(For an unformatted stream, use the $<$$<$ operator.) 

Implements {\bf TiXmlBase} \doxyref{}{p.}{classTiXmlBase_0de56b3f2ef14c65091a3b916437b512}.\index{TiXmlAttribute@{TiXmlAttribute}!Print@{Print}}
\index{Print@{Print}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlAttribute::Print (FILE $\ast$ {\em cfile}, int {\em depth}, TIXML\_\-STRING $\ast$ {\em str}) const}\label{classTiXmlAttribute_19e6b6862a80b188571c47947e88d030}


\index{TiXmlAttribute@{TiXmlAttribute}!SetDocument@{SetDocument}}
\index{SetDocument@{SetDocument}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlAttribute::SetDocument ({\bf TiXmlDocument} $\ast$ {\em doc})\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlAttribute_c12a94d4548302afb12f488ba101f7d1}




\subsection{Friends And Related Function Documentation}
\index{TiXmlAttribute@{TiXmlAttribute}!TiXmlAttributeSet@{TiXmlAttributeSet}}
\index{TiXmlAttributeSet@{TiXmlAttributeSet}!TiXmlAttribute@{TiXmlAttribute}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}friend class {\bf TiXmlAttributeSet}\hspace{0.3cm}{\tt  [friend]}}\label{classTiXmlAttribute_35a7b7f89f708527677d5078d41ce0bf}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
/home/msneddon/eclipse/ganymede\_\-cpp/workspace/NFsim\_\-svn/src/NFinput/TinyXML/{\bf tinyxml.h}\item 
/home/msneddon/eclipse/ganymede\_\-cpp/workspace/NFsim\_\-svn/src/NFinput/TinyXML/{\bf tinyxml.cpp}\item 
/home/msneddon/eclipse/ganymede\_\-cpp/workspace/NFsim\_\-svn/src/NFinput/TinyXML/{\bf tinyxmlparser.cpp}\end{CompactItemize}
